import { defineStore } from 'pinia'
import { getCityAllData } from '../../http/modules/city'
const useCityStore = defineStore("city",{
    state:()=>({
        cityAll:{},
        selectCity:{cityName:'广州'}
    }),
    actions:{
        async getcityall(){
            let res = await getCityAllData();
            this.cityAll = res.data;
        }
    }
})
export default useCityStore